package com.kuzlak.cms.module.sys.bean;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;



@Schema(description = "菜单")
@Data
public class MenuVO {
    @Schema(description = "编号")
    private long id;

    @Schema(description = "名称")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "排序")
    private int sort;

    @Schema(description = "父节点")
    private long parentId;

    @Schema(description = "类型")
    @Min(value = 1, message = "类型不能为空最，小的1")
    @Max(value = 3, message = "类型不能为空最，大的3")
    private int type;

    @Schema(description = "路由地址")
    @NotEmpty(message = "路由地址不能为空")
    private String routePath;

    @Schema(description = "组建地址")
    @NotEmpty(message = "组建地址不能为空")
    private String compPath;

    @Schema(description = "权限字符")
    @NotEmpty(message = "权限字符不能为空")
    private String permsKey;

    @Schema(description = "params")
    private String params;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "状态")
    private int status;
}
